{% extends 'base/base1.html' %}

{% block main %}
<div class="container mt-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card border-danger">
                <div class="card-header bg-danger text-white">
                    <h3 class="mb-0">确认删除分类</h3>
                </div>
                <div class="card-body">
                    <p class="text-center text-danger">您确定要删除分类 <strong>{{ object.title }}</strong> 吗？</p>
                    <p class="text-warning small">注意：删除分类将影响相关商品，请谨慎操作！</p>
                    
                    <form method="post">
                        {% csrf_token %}
                        <div class="row">
                            <div class="col-md-6">
                                <button type="submit" class="btn btn-danger btn-block">确认删除</button>
                            </div>
                            <div class="col-md-6">
                                <a href="{% url 'main:category' %}" class="btn btn-secondary btn-block">取消</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}